<div ms-controller="lunBo" class="lunBo">
	<h2 class="title">首页轮播</h2>
	<div class="mainTop">
		<input type="text" placeholder="请输入轮播名称" class="inputSize" ms-duplex="title"/>
		<select class="selectSize" ms-duplex="delflag" data-duplex-changed="selectchange">
				<option value="">选择状态</option>
				<option value="t">未发布</option>
				<option value="f">已发布</option>
		</select>
		<button class="btn1" ms-click="lunboList">搜索</button>
		<button class="btnAdd" ms-click="addLunbo">新建</button>
	</div>
	<table class="table table-striped">
		<thead>
			<tr>
				<th>序号</th>
				<th>轮播名称</th>
				<th>指向链接</th>
				<th>轮播页码</th>
				<th>创建时间</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ms-repeat="list">
				<td>{{el.id}}</td>
				<td>{{el.title}}</td>
				<td>{{el.targetName}}</td>
				<td>{{el.pageNo}}</td>
				<td>{{el.updatetime|date("yyyy MM dd:HH:mm:ss"}}</td>
				<td ms-if="el.delflag !='f'"><label>未发布</label></td>
				<td ms-if="el.delflag=='f'"><label>已发布</label></td>
				<td class="edit" ms-if="el.delflag !='f'">
					<div ms-click="publish(el.id,1)">
						<i class="iconfont">&#xe60f;</i>
						<h1>发布</h1>
					</div>
					<div ms-click="editMess(el.id)">
						<i class="iconfont">&#xe611;</i>
						<h1>编辑</h1>
					</div>
					<div ms-click = "removeRemote($index, $remove,el.id)">
						<i class="iconfont">&#xe60d;</i>
						<h1>删除</h1>
					</div>
				</td>
				<td class="edit" ms-if="el.delflag =='f'">
					<div ms-click="publish(el.id,2)">
						<i class="iconfont">&#xe613;</i>
						<h1>取消发布</h1>
					</div>
					<div ms-click="editMess(el.id)">
						<i class="iconfont">&#xe611;</i>
						<h1>编辑</h1>
					</div>
					<div ms-click = "removeRemote($index, $remove,el.id)">
						<i class="iconfont">&#xe60d;</i>
						<h1>删除</h1>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</div>
